Make keyPress interact with status variable