Added key listener.