My latest project is an app that features multiple text areas. Personally, I use the app with two languages - English and another language that is aligned to the right. However, the default setting has the text-areas aligning to the left. To change this to align to the right, all it takes is a simple press of the right CTR+Shift keys. The app itself is built using React, but whenever the screen re-renders, it defaults back to aligning to the left. I am looking for a way to have control over the alignment - to be able to detect when a user chooses a specific alignment and save that choice to the state. How can I go about recognizing how the user wants to align their text, especially if they use right or left CTR+Shift commands? And most importantly, how can I adjust the text-area so that the alignment remains under the user's control?