support keyboard shortcuts: j, k, p