Refactored key management, keyreleased event added, info added