key input working