Keyboard shortcuts (Hotkeys) - Calling Methods Client/Server-side

Hi, I'm trying to implement keyboard shortcuts widget (or simply inject JS code) which calls a certain action/method (Save, Close, Cancel ,Microflow , etc...). The actual JS which listens to the keystrokes is not the issue, but calling a server side method and functions like closing the form are! Any idea/example on this please? Thanks.
1 answers
1 should get you on your way.