Fix protocol negotiation for web sockets
Keyboard hook pinvokes