Hello,
Since the issue also happens to the built-in keyboard, it is likely that the delay is caused by a third-party application (could be the "Roblox player" you were talking about.
You can try performing a clean boot first to rule out the influence of third-party software, and see whether the issue persists.
To do so, right-click Start->Task manager. Go to the "Startup" tab, and disable all startup items. Then, press Wondows+R and enter "msconfig". Go to the "Services" tab, select "Hide all Microsoft services", and then select "Disable all". Select Apply and reboot. See whether the issue persists.
Please refer to this support article for details, and how to pinpoint the application causing the issue.
Disclaimer: A "clean boot" starts Windows with a minimal set of drivers and startup programs.
It helps to determine whether a background service is interfering with your game or program and to isolate the cause of a problem.
These steps of "clean boot" might look complicated at first glance; however to avoid any trouble for you, please follow them in order and step-by-step, so that it will help you get back on track.
If the issue persists, there may be a profile corruption. Please try using a new clean profile by creating a new local administrator account.
To do so, right-click Start->Terminal/PowerShell/Command prompt (Admin), and enter the following commands:
net user user1 pass1 /add
net localgroup administrators user1 /add
(Replace "user1" and "pass1" with the username and password of the new user.)
After creating the user, reboot the computer, select the new user, and log in. See whether the issue persists.