Added simple dection of keypresses