Revert "Support different keyboard layouts in search on keypress function"

This reverts commit e3260ff3377e7adff5ad8e9cef98e8529403e3b9.