basic flip functionality added with 'space' key