Added key actions to the login and register text fields