Implemented key-toggle