##Question
Why is the enter key not printing that it is being pressed?
##Answer
Because the .KeyDown signal of the client's mouse returns a string of what key was pressed not an enum.
By the way Donut792 provided some pretty useful insight in the comments so do read their comments since they will help you.
Donut has ninja'd me but I will still post xd
###How to fix this?
Use UserInputService as it is better to use the newer methods that are updated more frequently.
UserInputService has InputBegan signal which passes an InputObject for the first argument and the second argument was whether the player was typing or was interacting with some core gui stuff.
####Example Code
local userInputService = game:GetService("UserInputService")
local function handleInputBegan(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.Return then
print("Enter was pressed")
end
end
userInputService.InputBegan:Connect(handleInputBegan)
2 comments
try using keyboard input instead of the mouse method
https://developer.roblox.com/api-reference/class/UserInputService