Moved keydown listener into else of ontouchstart