added a key code statement