Filter keys is an accessibility feature that instructs Windows to ignore brief or repeated keystrokes. This could potentially be a reason for the delayed output of your keyboard. You can fix this ...
In the case of Bluetooth keyboard, you may want to check if its low on battery. You may have to change the battery or charge it. Filter Keys is a Microsoft Windows Accessibility feature.