Remove unneeded code for keys other than right arrow