add keyboard event lietener