<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Interesting. It seems that the KeyPressListener and the ArrowKeyPressListener cannot be implemented at the same time. And it seems, in your example, anyway, that arrowKeyPressed overrides keyPress, but that may be an artifact of this particular implementation.<div class=""><br class=""></div><div class="">My suggestion is the you use only KeyPressListener, which gives you access to all keys on the keyboard, including the arrow keys. I have attached my solution.</div><div class=""><br class=""></div><div class="">Let me know if you have any questions…</div><div class=""><br class=""></div><div class="">All the best,</div><div class="">Don Slater</div><div class=""><div class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class=""><br class="">Alice Team<br class="">Carnegie Mellon University<br class="">Entertainment Technology Center<br class="">700 Technology Drive<br class="">Pittsburgh, PA 15219<br class=""><br class="">Email: <a href="mailto:dslater@cmu.edu" class="">dslater@cmu.edu</a></div><div class=""><br class=""></div><div class="">I have learned this at least by my experiment: that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours.<br class="">--- Henry David Thoreau</div></div><div class=""><br class=""></div><div class="">The true object of all human life is play. -- G.K. Chesterton<br class=""><br class=""></div></div></span></div></span></div></span></div></span></div></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jan 8, 2016, at 8:23 AM, Steven Pleau via alice-teachers <<a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Sorry for the delay.<div class=""><br class=""></div><div class="">Here is the file with the events for both WASD and Arrow keys.</div><div class=""><br class=""></div><div class="">Only they Arrow keys work?</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">Steve</div></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class="">Steven Pleau<div class="">Computer Programming & Web Development Teacher</div><div class="">Assabet Valley Regional Technical High School</div><div class="">215 Fitchburg Street</div><div class="">Marlborough,MA 01752</div><div class=""><a href="mailto:spleau@assabet.org" target="_blank" class="">spleau@assabet.org</a><br class=""></div></div></div></div>
<br class=""><div class="gmail_quote">On Wed, Jan 6, 2016 at 11:02 AM, Don Slater via alice-teachers <span dir="ltr" class=""><<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank" class="">alice-teachers@lists.andrew.cmu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Would you please send a copy of the world, or a screen shot of their implementation?<div class=""><br class=""></div><div class="">Thank you,</div><div class=""><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><span style="border-collapse: separate; font-family: Verdana; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; border-spacing: 0px;" class=""><div style="word-wrap:break-word" class=""><span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; border-spacing: 0px;" class=""><div style="word-wrap:break-word" class=""><span style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; border-spacing: 0px;" class=""><div style="word-wrap:break-word" class=""><span style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; border-spacing: 0px;" class=""><div style="word-wrap:break-word" class=""><div class=""><div class="">Don Slater</div><div class=""><br class="">Alice Team<br class="">Carnegie Mellon University<br class="">Entertainment Technology Center<br class="">700 Technology Drive<br class="">Pittsburgh, PA 15219<br class=""><br class="">Email: <a href="mailto:dslater@cmu.edu" target="_blank" class="">dslater@cmu.edu</a></div><div class=""><br class=""></div><div class="">I have learned this at least by my experiment: that if one advances confidently in the direction of his dreams, and endeavors to live the life he has imagined, he will meet with a success unexpected in common hours.<br class="">--- Henry David Thoreau</div></div><div class=""><br class=""></div><div class="">The true object of all human life is play. -- G.K. Chesterton<br class=""><br class=""></div></div></span></div></span></div></span></div></span></div></div></div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 6, 2016, at 10:54 AM, Steven Pleau via alice-teachers <<a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank" class="">alice-teachers@lists.andrew.cmu.edu</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Hi gang,<div class=""><br class=""></div><div class="">My students are trying to get the WASD keys and ARROW keys to work simultaneously in a world, but when they add the ARROW keys the WASD keys no longer work?</div><div class=""><br class=""></div><div class="">Any suggestions/solutions?</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">Steve</div><div class=""><br clear="all" class=""><div class=""><div class=""><div dir="ltr" class="">Steven Pleau<div class="">Computer Programming & Web Development Teacher</div><div class="">Assabet Valley Regional Technical High School</div><div class="">215 Fitchburg Street</div><div class="">Marlborough,MA 01752</div><div class=""><a href="mailto:spleau@assabet.org" target="_blank" class="">spleau@assabet.org</a><br class=""></div></div></div></div>
</div></div>
_______________________________________________<br class="">alice-teachers mailing list<br class=""><a href="mailto:alice-teachers@lists.andrew.cmu.edu" target="_blank" class="">alice-teachers@lists.andrew.cmu.edu</a><br class=""><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" target="_blank" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br class=""></div></blockquote></div><br class=""></div></div><br class="">_______________________________________________<br class="">
alice-teachers mailing list<br class="">
<a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">
<a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers" rel="noreferrer" target="_blank" class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br class="">
<br class=""></blockquote></div><br class=""></div>
<span id="cid:0F820F2F-7495-4FD6-8892-B1BBB55A6520@fios-router.home"><BrandonAnway_Game1ERROR.a3p></span>_______________________________________________<br class="">alice-teachers mailing list<br class=""><a href="mailto:alice-teachers@lists.andrew.cmu.edu" class="">alice-teachers@lists.andrew.cmu.edu</a><br class="">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers<br class=""></div></blockquote></div><br class=""></div></body></html>