Panel.StartAnimate works, but in need of Keyboard Input. Use this or another method?

Hello. First off thank you to people that been helping me like Jimbodude.

I was told to try making a flash game in gmod work by using the example of Panel.StartAnimate off Garry’s wiki. Well first I updated the object code to get it to embed the flash…

[lua]
function RunTest(ply, cmd, arg)
Winmain = vgui.Create(“Frame”)
Winmain:SetPos(0,0)
Winmain:SetSize(800,600)
Winmain:SetVisible(true)
Winmain:SetTitle( “StartAnimate() Test” )
Winmain:MakePopup()
Winmain:ShowCloseButton(true)
Winhtml = vgui.Create( “HTML” , Winmain)
Winhtml:SetPos(0,30)
Winhtml:SetSize(790,560)
Winhtml:SetVisible(true)
// local link = “http://softforfree.com/files/swf/donkeykong.swf” isn’t used but kept incase of change
local url = [[
<center>
<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0” width=“700” height=“500”>
<param name=“movie” value=“http://softforfree.com/files/swf/donkeykong.swf”>
<param name=“quality” value=“high”>
<embed src=“http://softforfree.com/files/swf/donkeykong.swf” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer” type=“application/x-shockwave-flash” width=“700” height=“500”>
</embed>
</object>
</center>]]
Winhtml:SetHTML( url )
Winhtml:Refresh(true)
Winhtml:StartAnimate(100)
end
concommand.Add(“animtest”, RunTest)
[/lua]

So I get this guy to run CL. It has a white background when it is suppose to be black, no big deal. The trouble is no keyboard input! I understand this might of been made for only video playback of like .flv.

So the question is does anyone know how to make keyboard input work? Should I just use another method to get the job done? I really wanna put this in my server and would appreciate any help!

P.S. - Alternatives like even using java or any way to get client side “mini games” to work is appreciated. Thank you!

Thank you for reading, and have a good rest of your weekend
SofaKing!

Bump… If there isn’t a way plz tell me. I think it would be a great addition to any server (again, if it is possible)…