It can be due to various possibilities, but the most common bug is minor bug within the system or application, and corrupted keyboard cache. If you have the same issue, do follow guide to fix it.