title: Detect keyboard input javascript
body: <p>I am writing a script where I need to know if a user has pressed <kbd>ctrl+s</kbd> or <kbd>ctrl+p</kbd>. How do I do this. Help would be appreciated. the problem is as soon as the user presses <kbd>ctrl+s</kbd> the page doesn't go to script, it directly gets saved.</p>