Question: Hi I would like to know how I can make my page scroll when arrow keys are pressed. Like this page: <http://spacexstats.xyz>. Java script and jQuery are accepted.

Thanks, Ivan.

Answer: 
AWS LoadBalancer sends [X-Forwarded-Proto](http://docs.aws.amazon.com/elasticloadbalancing/latest/classic/x-forwarded-headers.html) header when proxying request.

On Tomcat configure [RemoteIpValve](https://tomcat.apache.org/tomcat-8.5-doc/config/valve.html#Proxies_Support) to have [request.secure](http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#isSecure()) and other request variable interpreted from those headers. 

```
<Valve className="org.apache.catalina.valves.RemoteIpValve"/>

```

You should also omit setting `proxyName` on `Connector` conifiguration since it should come automatically from valve.
Did you try to put LB address as proxyName? It might work on your case.