In zsh and some bash, you can access command history in a way simpler way:
1) Start typing a command `ssh`
2) Use `up` arrow to go backward in your history
2) Use `down` arrow to go forward in your history
1) Start typing a command `ssh`
2) Use `up` arrow to go backward in your history
2) Use `down` arrow to go forward in your history
1) Replace CapsLock with Ctrl
2) Use Ctrl-P, Ctrl-N to navigate the commands
Remember: never leave the home row.It's the weaker little brother to ctrl-r, only useful for commands ran 1,2 invokes ago. ctrl-r is more functional I'd say
"\e[A": history-search-backward "\e[B": history-search-forward