Pressing left or right buttons produces two different messages in console