Steps will be on the lines of:
{init section}
Load in Image
Declare a local state variable e.g. image_state and set either -1 or 0
{main section}
Detect if G key pressed
If pressed and state = -1 (or 0) then Display Image and set state variable to 1
if pressed and state = 1 then Hide image and set state variable to -1 (or 0)
{exit section} (if any)
Professional Programmer: Languages- SAS, C++, SQL, PL-SQL, JavaScript, HTML, Darkbasic Pro, Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; LG TFT monitor (widescreen).