Improve key pressing