Please notice, that this script doesnt change original behaviour of keys in any way.
My question is, can the original behavior of the keys be suppressed while the script is running? I have been looking for a way to make the T and R keys act as next page and previous page. Is something like this possible? With this script, pressing T opens the search box (as you said it would), and does not change the page.