move key definitions into function
change forward key to l