every minor cycle checks for key press