Restructuring. Defining keypress of right hand side outside of document ready.