How can I detect the player pressed enter on the "on-screen keyboard?"

Like the Roblox chat system, it has a function that automatically sends the input to the receiver to remotely send out the new message to everybody’s chat logs. How would I be able to detect it if the user is not on keyboard, but using an on-screen keyboard?

I don’t think you can detect if it’s from an on screen keyboard or a physical keyboard as they both send the same key events. However, you can see if the on-screen keyboard is visible: UserInputService | Documentation - Roblox Creator Hub

Look into UserInputService, it should have everything you need to deal with inputs. You can detect inputs from the InputBegan and InputEnded events.

If you’re trying to do a chat system or something from a custom GUI, this might come in handy: UserInputService | Documentation - Roblox Creator Hub

1 Like

Sincerely, I agree with this input…

2 Likes