How to enable keep alives on Windows 2012 RDS is very simple.
On GPO or Local TS go to
Open GPO Editor
Computer Configuration \ Administrative Templates \ Windows Components \ Remote Desktop Session Host / Connections
configure keep-alive connections interval – Enabled
Keep-Alive interval: 1