I've made a working chat script, but it cant detect when the player hits return on mobile.
Basically what I'm asking is: How to detect when a mobile device presses return on their keyboard for chat?
I've already tried:
InputService.InputBegan:connect(function(Key)
if Key.KeyCode == Enum.KeyCode.Return then
--stuff in here
end
end)
And it didn't work so can someone help me?

3 comments
This is a very good question. I'd like to know the same.
What you've called "Key" is an InputObject. Try printing out all its properties after line 1 to see what Roblox sends (if anything) when 'return' is pressed. InputObject documentation: http://wiki.roblox.com/index.php?title=API:Class/InputObject
I guess I'll try that