Input delay is usually caused by overall system performance. If you're able to test with an external USB keyboard, please do. If you have the same problem with the external, your keyboard is not the problem. If you do not have the same issue with the external keyboard, then you may need to replace the laptop's internal keyboard.